// 新增文件：自定义Application类
package com.example.toycarcontroller

import android.app.Application
import android.util.Log

class ToyCarApplication : Application() {
    private val TAG = "ToyCarApplication"
    
    override fun onCreate() {
        super.onCreate()
        // 提前初始化蓝牙服务单例
        val bluetoothService = BluetoothService.getInstance(this)
        Log.d(TAG, "蓝牙服务初始化完成")
    }
}